function OS_Ornament(host,id)
{
	this.$super=OS_Bitmap;
	if (this.$super(host,id)===false) return;
	delete this.$super;
	
	this.cover=false;
	this.passable=true;
	
	this.load=function(handler)
	{
		this.loadBitmap();
		if (this.resourceNode.getElementsByTagName("cover").length>0)
		{
			this.cover=true;
		}
		if (this.resourceNode.getElementsByTagName("forbidden").length>0)
		{
			this.passable=false;
		}
		this.loaded=true;
		handler(this);
	}
}

OS_Resource.Builder.put("ornament",OS_Ornament);